<!-- $Id: goods_type_info.htm 14216 2008-03-10 02:27:21Z testyang $ -->

{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,validator.js"}
<div class="main-div">
  <form action="" method="post" name="theForm" onsubmit="return validate();">
    <table cellspacing="1" cellpadding="3" width="100%">
      <tr>
        <td class="label">优惠类型:</td>
        <td>
          <select name="type_id" id="">
            <option value="0">选择优惠类型</option>
            {foreach from = $type_list item = type}
            <option value="{$type.type_id}">{$type.type_name}</option>
            {/foreach}
          </select>
        </td>
      </tr>
      <tr>
        <td class="label">优惠卷名称:</td>
        <td>
          <input type="text" name="coupon_name" value="" size="40" />

        </td>
      </tr>
      <tr>
        <td class="label">使用金额:</td>
        <td>
          <input type="text" name="use_price" value="" size="40" />
          （使用优惠卷的条件）
        </td>
      </tr>
            <tr>
        <td class="label">发放数量:</td>
          <td>
            <input type="text" name="out_number" value="" size="40" />
          </td>
      </tr>
      <tr>
        <td class="label">开始时间:</td>
        <td>
          <input type="date" name="start_time" value="" size="40" />
        </td>
      </tr>
      <tr>
        <td class="label">结束时间:</td>
        <td>
          <input type="date" name="end_time" value="" size="40" />
        </td>
      </tr>
        <tr>
          <td></td>
          <td >优惠卷只能在规定时间内使用过期无效</td>
        </tr>
      <tr>
        <td class="label">开始领取时间:</td>
        <td>
          <input type="datetime-local" name="get_start_time" value="" size="40" />
        </td>
      </tr>
      <tr>
        <td class="label">结束领取时间:</td>
        <td>
          <input type="datetime-local" name="get_end_time" value="" size="40" />
        </td>
      </tr>
        <tr>
          <td></td>
          <td >优惠卷只能在规定时间内领取过时无法领取</td>
        </tr>
      <tr align="center">
        <td colspan="2">
          <input type="submit" value="{$lang.button_submit}" class="button" />
          <input type="reset" value="{$lang.button_reset}" class="button" />
          <input type="hidden" name="act" value="post" />
        </td>
      </tr>
    </table>
  </form>
</div>

<script type="text/javascript">
<!--
{literal}
onload = function() {
  document.forms['theForm'].elements['cat_name'].focus();
  startCheckOrder();
}

function validate()
{
  var validator = new Validator('theForm');
  validator.required('cat_name', type_name_empty);

  return validator.passed();
}
{/literal}  
//-->
</script>

{include file="pagefooter.htm"}
